home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 2 / CD ACTUAL VOL 2.iso / docs / cdrom-ho < prev    next >
Encoding:
Text File  |  1995-09-10  |  57.7 KB  |  1,966 lines

  1.   The Linux CD-ROM HOWTO
  2.   Jeff Tranter, jeff_tranter@mitel.com
  3.   v1.5, 18 August 1995
  4.  
  5.   This document describes how to install, configure, and use CD-ROM
  6.   drives under Linux. It lists the supported hardware and answers a num-
  7.   ber of frequently asked questions. The intent is to bring new users up
  8.   to speed quickly and reduce the amount of traffic in the usenet news
  9.   groups.
  10.  
  11.   1.  Introduction
  12.  
  13.  
  14.   This is the Linux CD-ROM HOWTO document. It is intended as a quick
  15.   reference covering everything you need to know to install and
  16.   configure CD-ROM hardware under Linux. Frequently asked questions
  17.   related to CD-ROM are answered, and references are given to other
  18.   sources of information related to CD-ROM applications and technology.
  19.  
  20.  
  21.   1.1.  Acknowledgments
  22.  
  23.  
  24.   Much of this information came from the README files provided with the
  25.   Linux kernel source code, the internet alt.cdrom newsgroup FAQ, and
  26.   input from Linux users.
  27.  
  28.   Thanks to the Linuxdoc-SGML package, this HOWTO is available in
  29.   several formats, all generated from a common source file.
  30.  
  31.  
  32.   1.2.  Revision History
  33.  
  34.  
  35.  
  36.  
  37.      Version 1.0
  38.         First version made publicly available
  39.  
  40.  
  41.      Version 1.1
  42.         CDU33A is explicitly supported as of 1.1.20 kernel; notes on
  43.         Reveal FX; info on reading audio tracks; info on some alpha
  44.         drivers; added troubleshooting section; a few other minor
  45.         additions
  46.  
  47.  
  48.      Version 1.2
  49.         ISO-9660 file systems must be mounted read-only starting with
  50.         1.1.33 kernel; clarified that SB16 SCSI is supported and newer
  51.         Aztech drives are not supported; references to photocd and xpcd
  52.         programs; note new on sbpcd autoeject feature
  53.  
  54.  
  55.      Version 1.3
  56.         Minor change to the way SBPCD eject feature is disabled starting
  57.         with the 1.1.49 kernel; added info on XA discs and how to
  58.         identify them
  59.  
  60.  
  61.      Version 1.4
  62.         HOWTO now available in other languages; IBM and Longshine drives
  63.         now supported by SBPCD; alpha driver for Aztech drives; CDU-33
  64.         driver no longer auto-probes, supports PhotoCD and audio; more
  65.         than 2 SCSI drives are supported; new driver for IDE; reminder
  66.         to check drive jumpers; can now set SBPCD auto-eject with IOCTL;
  67.         list drivers with multisession support; question on flashing
  68.         light on CDU-33
  69.  
  70.  
  71.      Version 1.5
  72.         A long overdue update (I've been busy); document placed under
  73.         GPL; info on many new kernel drivers; more info on configuration
  74.         and troubleshooting; lots of HTML links added; many other minor
  75.         changes
  76.  
  77.  
  78.  
  79.   1.3.  New Versions Of This Document
  80.  
  81.  
  82.   New versions of this document will be periodically posted to the
  83.   comp.os.linux.announce newsgroup. They will also be uploaded to
  84.   various anonymous ftp sites that archive such information including
  85.   <ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/>.
  86.  
  87.   Hypertext versions of this and other Linux HOWTOs are available on
  88.   many World-Wide-Web sites, including
  89.   <http://sunsite.unc.edu/mdw/mdw.html>. Most Linux CD-ROM distributions
  90.   include the HOWTOs, and you can also buy printed copies from several
  91.   vendors.
  92.  
  93.   A French translation of this document, by Bruno Cornec
  94.   (cornec@stna7.stna.dgac.fr) is available at
  95.   <ftp://ftp.ibp.fr/pub2/linux/french/docs/HOWTO/>.
  96.  
  97.   A Japanese translation by Itsushi Minoura (minoura@uni.zool.s.u-
  98.   tokyo.ac.jp) is available from <http://yebisu.ics.es.osaka-
  99.   u.ac.jp/linux/>.
  100.  
  101.  
  102.   1.4.  Feedback
  103.  
  104.  
  105.   I rely on you, the users, to make this HOWTO useful. If you have any
  106.   suggestions, corrections, or comments, please send them to me,
  107.   jeff_tranter@mitel.com, and I will try to incorporate them in the next
  108.   revision.
  109.  
  110.   I am also willing to answer general questions on CD-ROM and Linux, as
  111.   best I can. Before doing so, please read all of the information in
  112.   this HOWTO, and send me detailed information about the problem.
  113.  
  114.   If you publish this document on a CD-ROM or in hardcopy form, a
  115.   complimentary copy would be appreciated. Mail me for my postal
  116.   address.
  117.  
  118.  
  119.   1.5.  Distribution Policy
  120.  
  121.  
  122.   Copyright (C) 1995 Jeff Tranter.
  123.  
  124.   This HOWTO is free documentation; you can redistribute it and/or
  125.   modify it under the terms of the GNU General Public License as
  126.   published by the Free Software Foundation; either version 2 of the
  127.   License, or (at your option) any later version.
  128.  
  129.   This document is distributed in the hope that it will be useful, but
  130.   without any warranty; without even the implied warranty of
  131.   merchantability or fitness for a particular purpose.  See the GNU
  132.   General Public License for more details.
  133.   You can obtain a copy of the GNU General Public License by writing to
  134.   the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
  135.   USA.
  136.  
  137.  
  138.   2.  CD-ROM Technology
  139.  
  140.  
  141.  
  142.   "CD-ROM is read-only memory, and audio compact disc system is
  143.   available as package-media of digital data for those purpose. For
  144.   playing audio CD, please insert Head-phone jack."
  145.   --- from a CD-ROM instruction manual
  146.  
  147.  
  148.  
  149.   Don't Panic! The world of CD-ROM technology is not as confusing as
  150.   your instruction manual.
  151.  
  152.   CD-ROM stands for Compact Disc Read-Only Memory, a mass storage medium
  153.   utilizing an optical laser to read microscopic pits on the aluminized
  154.   layer of a polycarbonate disc. The same format is used for audio
  155.   Compact Discs. Because of its high storage capacity, reliability, and
  156.   low cost, CD-ROM has become an increasingly popular storage media.
  157.  
  158.   The storage capacity of a CD-ROM disc is approximately 650 megabytes,
  159.   equivalent to over 500 high density 3.5" floppy disks or roughly
  160.   250,000 typed pages.
  161.  
  162.   First generation drives (known as single speed), provide a transfer
  163.   rate of approximately 150 kilobytes per second; these are now
  164.   generally considered obsolete. Double speed drives (300 kilobytes per
  165.   second) are widely available, and many users are now opting for quad
  166.   speed (600 kilobytes per second).
  167.  
  168.   Most CD-ROM drives use either the Small Computer Systems Interface
  169.   (SCSI), ATAPI enhanced IDE interface, or a vendor proprietary
  170.   interface. They also typically support playing audio CDs via an
  171.   external headphone jack or line level output. Some CDs also allow
  172.   reading the frames of data from audio CDs in digital form.
  173.  
  174.   CD-ROMs are usually formatted with an ISO-9660 (formerly called High
  175.   Sierra) file system. This format restricts filenames to the MS-DOS
  176.   style (8+3 characters). The Rock Ridge Extensions use undefined fields
  177.   in the ISO-9660 standard to support longer filenames and additional
  178.   Unix style information (e.g. file ownership, symbolic links, etc.).
  179.  
  180.   PhotoCD is a standard developed by Kodak for storing photographic
  181.   images as digital data on a CD-ROM. With appropriate software, you can
  182.   view the images on a computer, manipulate them, or send them to a
  183.   printer. Information can be added to a PhotoCD at a later date; this
  184.   is known as multi-session capability.
  185.  
  186.   CD recorders (CD-R) have recently become available. They use a
  187.   different media and specialized equipment for recording, but the
  188.   resulting disc can be read by any CD-ROM drive.
  189.  
  190.   In the future CD-ROM drive vendors are expected to offer technology
  191.   that will increase storage capacity by an order of magnitude.
  192.  
  193.  
  194.   3.  Supported Hardware
  195.  
  196.  
  197.   This section lists the CD-ROM drivers and interfaces that are
  198.   currently supported under Linux. The information here is based on the
  199.   latest Linux kernels, which at time of writing were version 1.2.13
  200.   (latest stable release) and 1.3.20 (latest development release).
  201.  
  202.   This information is only valid for Linux on the Intel platform. Some
  203.   information may be applicable to other processor architectures, but I
  204.   have no first hand experience or information.
  205.  
  206.  
  207.   3.1.  SCSI CD-ROM Drives
  208.  
  209.  
  210.   SCSI (Small Computer Systems Interface) is a popular format for CD-ROM
  211.   drives. Its chief advantages are a reasonably fast transfer rate,
  212.   multi-device capability, and support on a variety of computer
  213.   platforms. Some disadvantages of SCSI are the need for a relatively
  214.   expensive controller card and cables.
  215.  
  216.   Any SCSI CD-ROM drive with a block size of 512 or 2048 bytes should
  217.   work under Linux; this includes the vast majority of CD-ROM drives on
  218.   the market.
  219.  
  220.   You will also need a supported SCSI controller card; see the SCSI
  221.   HOWTO for more information on interface hardware.
  222.  
  223.   Note that some CD-ROMs include a controller with a modified interface
  224.   that is not fully SCSI compatible (e.g. it may not support adding
  225.   other SCSI devices on the bus). These will most likely not work under
  226.   Linux.
  227.  
  228.  
  229.   3.2.  Proprietary CD-ROM Drives
  230.  
  231.  
  232.   Several CD-ROM drives using proprietary interfaces are available; the
  233.   interface is often provided on a sound card. Simple interface cards
  234.   equivalent to that provided on the sound card are also available.
  235.   These drives generally tend to be lower in cost and smaller than SCSI
  236.   drives. Their disadvantages are the lack of standardization and
  237.   expandability.
  238.  
  239.   Note that proprietary interfaces are sometimes erroneously referred to
  240.   as IDE interfaces, because like IDE hard disks, they use a simple
  241.   interface based on the PC/AT bus. To add to the confusion, some
  242.   vendors, most notably Creative Labs, have shipped many different types
  243.   of CD-ROM drives and have offered proprietary, SCSI, and ATAPI
  244.   interfaces on their sound cards.
  245.  
  246.   The table below lists the proprietary CD-ROM drives that are known to
  247.   be supported under Linux. Drivers for additional devices are always in
  248.   development and may be available as kernel patches. They can most
  249.   often be found at
  250.   <ftp://sunsite.unc.edu/pub/Linux/kernel/patches/cdrom/>. Also check
  251.   the README files included with the kernel distribution, usually
  252.   installed in /usr/src/linux/drivers/block/, for the latest
  253.   information.
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.                   Proprietary CD-ROM Drives
  266.  
  267.   Vendor          Model           Kernel Driver   Notes
  268.   ------          -----           -------------   --------
  269.   Panasonic       CR-521          sbpcd           Note 1
  270.   Panasonic       CR-522          sbpcd           Note 1
  271.   Panasonic       CR-523          sbpcd           Note 1
  272.   Panasonic       CR-562          sbpcd           Note 1
  273.   Panasonic       CR-563          sbpcd           Note 1
  274.   Creative Labs   CD-200          sbpcd           Note 2
  275.   IBM             External ISA    sbpcd           Note 3
  276.   Longshine       LCS-7260        sbpcd
  277.   Teac            CD-55A          sbpcd
  278.   Sony            CDU-31A         cdu31a
  279.   Sony            CDU-33A         cdu31a
  280.   Sony            CDU-535         sonycd535       Note 4
  281.   Sony            CDU-531         sonycd535
  282.   Aztech          CDA268-01A      aztcd
  283.   Orchid          CDS-3110        aztcd
  284.   Okano/Wearnes   CDD110          aztcd
  285.   GoldStar        R420            gscd            Note 5
  286.   Philips/LMS     CM206           cm206           Note 6
  287.   Mitsumi         CRMC LU005S     mcd/mcdx        Note 7, 8
  288.   Mitsumi         FX001           mcd/mcdx        Note 7, 8
  289.   Optics Storage  Dolphin 8000AT  optcd           Note 9
  290.   Sanyo           H94A            sjcd            Note 9
  291.  
  292.  
  293.  
  294.   Notes:
  295.  
  296.  
  297.   1. The drives may be sold under the names Creative Labs, Panasonic,
  298.      Matsushita, or Kotobuki.
  299.  
  300.   2. Support for this drive is new and not fully tested.
  301.  
  302.   3. This drive is the same as a Panasonic CR-562.
  303.  
  304.   4. May also be sold under the Procomm name.
  305.  
  306.   5. May also be sold as part of a Reveal Multimedia Kit.
  307.  
  308.   6. The Philips CM205 is not supported by this driver, but there is a
  309.      separate Alpha release driver available.
  310.  
  311.   7. May also be sold under the Radio Shack name.
  312.  
  313.   8. There are two drivers available. "mcd" is the original one, and
  314.      "mcdx" is a new experimental driver with more features (but
  315.      possibly less stable).
  316.  
  317.   9. This driver is considered experimental.
  318.  
  319.  
  320.   3.3.  ATAPI CD-ROM Drives
  321.  
  322.  
  323.   ATAPI (ATA Packet Interface) is a protocol for controlling mass
  324.   storage devices, similar to SCSI. It builds on the ATA (AT Attachment)
  325.   interface, the official ANSI standard name for for the IDE interface
  326.   developed for hard disk drives. ATAPI is commonly used for hard disks,
  327.   CD-ROM drives, tape drives, and other devices. While relatively new,
  328.   it is rapidly becoming the most popular type of interface. It offers
  329.   most of the functionality of SCSI, without the need for an expensive
  330.   controller or cables.
  331.   The Linux kernel has a device driver that should work with any ATAPI
  332.   CD-ROM drive. Vendors shipping compatible drives include Aztech,
  333.   Mitsumi, NEC, Sony, and Vertos.
  334.  
  335.  
  336.   4.  Installation
  337.  
  338.  
  339.   Installation of a CD-ROM under Linux consists of these steps:
  340.  
  341.  
  342.   1. Installing the hardware.
  343.  
  344.   2. Configuring and building the Linux kernel.
  345.  
  346.   3. Creating device files and setting boot time parameters
  347.  
  348.   4. Booting the Linux kernel.
  349.  
  350.   5. Mounting the media.
  351.  
  352.   The next sections will cover each of these steps in detail.
  353.  
  354.  
  355.   4.1.  Installing the Hardware
  356.  
  357.  
  358.   Follow the manufacturer's instructions for installing the hardware or
  359.   have your dealer perform the installation. The details will vary
  360.   depending on whether the drive is internal or external and on the type
  361.   of interface used. There are no special installation requirements for
  362.   Linux. You may need to set jumpers on the drive and/or interface card
  363.   for correct operation; some of the kernel drivers include README files
  364.   that include this information.
  365.  
  366.   As explained in the file README.ide, ATAPI CD-ROMS must be jumpered as
  367.   "single" or "master", and not "slave" when only one IDE device is
  368.   attached to an interface.
  369.  
  370.  
  371.   4.2.  Configuring and Building the Kernel
  372.  
  373.  
  374.   When initially installing Linux from CD-ROM you will likely be using a
  375.   boot and/or root disk provided as part of a Linux distribution. If
  376.   possible, you should choose a boot disk with the kernel driver for
  377.   your CD-ROM device type. If you cannot find a boot disk with the
  378.   necessary CD-ROM driver, you have several options:
  379.  
  380.  
  381.   1. install over a network
  382.  
  383.   2. boot DOS, and install the Linux files onto your hard disk
  384.  
  385.   3. boot DOS, and create a set of floppies to install Linux
  386.  
  387.   4. find someone who can build you a boot disk with the needed CD-ROM
  388.      driver
  389.  
  390.   The Linux Installation HOWTO
  391.   <http://sunsite.unc.edu/mdw/HOWTO/Installation-HOWTO.html> has more
  392.   information on installing Linux. If you purchased Linux on CD-ROM, it
  393.   likely also came with some installation instructions (that little
  394.   booklet inside the jewel case, and/or files on the CD).
  395.  
  396.  
  397.   Once Linux has initially been installed, most users will want to
  398.   compile their own kernel, usually for one of these reasons:
  399.  
  400.  
  401.   o  to support a CD-ROM drive or other hardware
  402.  
  403.   o  to upgrade to a newer kernel release
  404.  
  405.   o  to free up memory resources by minimizing the size of the kernel
  406.  
  407.   The Linux Kernel HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Kernel-
  408.   HOWTO.html> should be consulted for the details of building a kernel.
  409.   I will just mention here some issues that are specific to CD-ROM
  410.   drives.
  411.  
  412.   Obviously, you need to compile in support for your CD-ROM drive when
  413.   you do a "make config".
  414.  
  415.   If you have an ATAPI CD-ROM drive, you need to answer yes to the
  416.   questions:
  417.  
  418.  
  419.  
  420.        "Normal (MFM/RLL) disk and IDE disk/cdrom support?"
  421.        "Include support for IDE/ATAPI CDROMs?"
  422.  
  423.  
  424.  
  425.  
  426.   For SCSI CD-ROM drives, enable these options:
  427.  
  428.  
  429.  
  430.        SCSI support?
  431.        SCSI CDROM support?
  432.  
  433.  
  434.  
  435.  
  436.   Also enable support for your SCSI host adaptor when prompted, e.g.
  437.  
  438.  
  439.  
  440.        Adaptec AHA1542 support?
  441.  
  442.  
  443.  
  444.  
  445.   For proprietary interface CD-ROM drives, enable the appropriate
  446.   driver. You can use the table listed previously to determine the
  447.   driver to use for your model.
  448.  
  449.   Virtually all CD-ROMs use the ISO-9660 file system, so you must also
  450.   enable:
  451.  
  452.  
  453.  
  454.        ISO9660 cdrom filesystem support?
  455.  
  456.  
  457.  
  458.  
  459.   Although not needed for CD-ROM operation, if you have a sound card
  460.   that is supported under Linux you might want to enable and configure
  461.   the kernel sound driver at this time as well. The Sound HOWTO
  462.   <http://sunsite.unc.edu/mdw/HOWTO/Sound-HOWTO.html> can be a useful
  463.   reference here.
  464.  
  465.   You should then follow the usual procedure for building the kernel and
  466.   installing it. Don't boot with the new kernel until you create the
  467.   device files and set up any boot time parameters as described in the
  468.   next section.
  469.  
  470.   Many of the CD-ROM drivers can be built as loadable kernel modules.
  471.   How to do this is described in the modules documentation and the
  472.   Kernel HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html>
  473.  
  474.   If a drive type listed here is not supported by your kernel, you
  475.   likely need to upgrade to a newer version (several of the drivers are
  476.   only offered in the 1.3.x kernels).
  477.  
  478.   It is possible that you need to use a driver that is distributed
  479.   separately from the kernel source code. This usually involves patching
  480.   the kernel. Again, the Kernel HOWTO
  481.   <http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html> explains how to
  482.   do this.
  483.  
  484.  
  485.   4.3.  Creating Device Files and Setting Boot Time Parameters
  486.  
  487.  
  488.   The kernel uses device files to identify which device driver to use.
  489.   If you are running a standard Linux distribution you may have created
  490.   the necessary device files during installation. Under Slackware Linux,
  491.   for example, there is a menu-based setup tool that includes CD-ROM
  492.   setup, and most systems have a /dev/MAKEDEV script. If you don't use
  493.   these methods, you can use the more manual procedure listed in this
  494.   section. Even if you use either of these methods, it is recommended
  495.   that you at least verify the device files against the information in
  496.   this section.
  497.  
  498.   You create the device file by running the shell commands indicated for
  499.   your drive type. This should be done as user root. Note that some
  500.   Linux distributions may use slightly different CD-ROM device names
  501.   from those listed here.
  502.  
  503.   It is recommended that you also create a symbolic link to the CD-ROM
  504.   device to make it easier to remember. For example, for a Panasonic CD-
  505.   ROM drive, the link would be created using
  506.  
  507.  
  508.  
  509.        % ln -s /dev/sbpcd /dev/cdrom
  510.  
  511.  
  512.  
  513.  
  514.   If you want to play audio CDs, you will need to set the protection on
  515.   the device file (the real file, not the symbolic link to it) to allow
  516.   all users to read and write, e.g.
  517.  
  518.  
  519.  
  520.        % chmod 666 /dev/sbpcd
  521.        % ls -l /dev/sbpcd
  522.        brw-rw-rw-   1 root     disk      25,   0 Jul 18  1994 /dev/sbpcd
  523.  
  524.  
  525.  
  526.  
  527.   When booting Linux, the device drivers attempt to determine whether
  528.   the appropriate devices are present, typically by probing specific
  529.   addresses. Many of the drivers auto-probe at several addresses, but
  530.   because of differences in configuration, possible device conflicts,
  531.   and hardware limitations, the drivers sometimes need help identifying
  532.   the addresses and other parameters. Most drivers support an option on
  533.   the kernel command line to pass this information to the device driver.
  534.   This can be done interactively, or more commonly, configured into your
  535.   boot loader. With LILO, for example, you would add an append command
  536.   such as the following to your /etc/lilo.conf file:
  537.  
  538.  
  539.  
  540.        append = "sbpcd=0x230,SoundBlaster"
  541.  
  542.  
  543.  
  544.  
  545.   See the LILO documentation for more information.
  546.  
  547.   In the next section I discuss issues specific to individual device
  548.   drivers, including device files, boot parameters, and the capabilities
  549.   of the different drivers. You probably only need to read the section
  550.   relevant to your drive type.
  551.  
  552.  
  553.   4.3.1.  Sbpcd Driver
  554.  
  555.  
  556.  
  557.          Principal author: Eberhard Moenkeberg (emoenke@gwdg.de)
  558.     Multi-session support: yes (but not CD-52x drives)
  559.    Multiple drive support: yes
  560.   Loadable module support: yes
  561.      Reading audio frames: yes (CR-562 and CR-563 only)
  562.              Auto-probing: yes
  563.               Device file: /dev/sbpcd, major 25
  564.        Configuration file: sbpcd.h
  565.      Kernel config option: Matsushita/Panasonic CDROM support?
  566.               README file: README.sbpcd
  567.  
  568.  
  569.  
  570.   This driver accepts a kernel command line of the form:
  571.  
  572.  
  573.  
  574.        sbpcd=<io-address>,<interface-type>
  575.  
  576.  
  577.  
  578.  
  579.   where the first parameter is the base address of the device (e.g.
  580.   0x230), and <interface-type> is one of "SoundBlaster", "LaserMate", or
  581.   "SPEA". See the file sbpcd.h for hints on what interface type to use.
  582.   Using sbpcd=0 disables auto-probing, rendering the driver useless.
  583.  
  584.   The device file can be created using:
  585.  
  586.  
  587.  
  588.        % mknod /dev/sbpcd b 25 0
  589.  
  590.  
  591.  
  592.  
  593.   Up to four drives per controller are supported. The next three drives
  594.   on the first controller would use minor device numbers 1 through 3.
  595.   If you have more than one controller, create devices with major
  596.   numbers 26, 27, and 28, up to a maximum of 4 controllers (this is 16
  597.   CD-ROM drives in total; hopefully enough for most users :-).
  598.  
  599.   See the file README.sbpcd for more information on this driver.
  600.  
  601.  
  602.   4.3.2.  Sonycdu535 Driver
  603.  
  604.  
  605.  
  606.          Principal author: Ken Pizzini (ken@halcyon.com)
  607.     Multi-session support: no
  608.    Multiple drive support: no
  609.   Loadable module support: yes
  610.      Reading audio frames: no
  611.              Auto-probing: no
  612.               Device file: /dev/sonycd535, major 24
  613.        Configuration file: sonycd535.h
  614.      Kernel config option: Sony CDU535 CDROM support?
  615.               README file: README.sonycd535
  616.  
  617.  
  618.  
  619.   This driver accepts a kernel command line of the form:
  620.  
  621.  
  622.  
  623.        sonycd535=<io-address>
  624.  
  625.  
  626.  
  627.  
  628.   where <io-address> is the base address of the controller (e.g. 0x320).
  629.   Alternatively you can set the address in the file sonycd535.h and
  630.   compile it in.
  631.  
  632.   The device file can be created using:
  633.  
  634.  
  635.  
  636.        % mknod /dev/sonycd535 b 24 0
  637.  
  638.  
  639.  
  640.  
  641.   Some Linux distributions use /dev/sonycd for this device.  Older
  642.   versions of the driver used major device number 21; make sure your
  643.   device file is correct.
  644.  
  645.   This driver was previously distributed as a patch but is now part of
  646.   the standard kernel. See the file README.sonycd535 for more
  647.   information on this driver.
  648.  
  649.  
  650.   4.3.3.  Cdu31a Driver
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.          Principal author: Corey Minyard (minyard@wf-rch.cirr.com)
  662.     Multi-session support: yes
  663.    Multiple drive support: no
  664.   Loadable module support: yes
  665.      Reading audio frames: yes
  666.              Auto-probing: no
  667.               Device file: /dev/cdu31a, major 15
  668.        Configuration file: cdu31a.h
  669.      Kernel config option: Sony CDU31A/CDU33A CDROM support?
  670.               README file: README.cdu31a
  671.  
  672.  
  673.  
  674.   This driver accepts a kernel command line of the form:
  675.  
  676.  
  677.  
  678.        cdu31a=<io-address>,<interrupt>,PAS
  679.  
  680.  
  681.  
  682.  
  683.   The first number is the I/O base address of the card (e.g. 0x340). The
  684.   second is the interrupt number to use (0 means to use polled i/o). The
  685.   optional third parameter should be "PAS" if the drive is connected to
  686.   a Pro-Audio Spectrum 16 sound card, otherwise left blank.
  687.  
  688.   The device file can be created using:
  689.  
  690.  
  691.  
  692.        % mknod /dev/cdu31a b 15 0
  693.  
  694.  
  695.  
  696.  
  697.   See the file README.cdu31a for more information on this driver.
  698.  
  699.   Also see the Web page put together by Jeffrey Oxenreider
  700.   (zureal@infinet.com) that covers a lot of common problems with these
  701.   drives. It can be found at
  702.   <http://www.infinet.com/~zureal/cdu31a.html>.
  703.  
  704.  
  705.   4.3.4.  Aztcd Driver
  706.  
  707.  
  708.  
  709.          Principal author: Werner Zimmermann (zimmerma@rz.fht-esslingen.de)
  710.     Multi-session support: yes
  711.    Multiple drive support: no
  712.   Loadable module support: yes
  713.      Reading audio frames: no
  714.              Auto-probing: no
  715.               Device file: /dev/aztcd0, major 29
  716.        Configuration file: aztcd.h
  717.      Kernel config option: Aztech/Orchid/Okano/Wearnes (non IDE) CDROM support?
  718.               README file: README.aztcd
  719.  
  720.  
  721.  
  722.   This driver accepts a kernel command line of the form:
  723.  
  724.  
  725.  
  726.  
  727.   cdu31a=<io-address>
  728.  
  729.  
  730.  
  731.  
  732.   where the parameter is the I/O base address of the card (e.g. 0x340).
  733.  
  734.   The device file can be created using:
  735.  
  736.  
  737.  
  738.        % mknod /dev/aztcd0 b 29 0
  739.  
  740.  
  741.  
  742.  
  743.   See the file README.aztcd for more information on this driver.
  744.  
  745.  
  746.   4.3.5.  Gscd Driver
  747.  
  748.  
  749.  
  750.          Principal author: Oliver Raupach (raupach@nwfs1.rz.fh-hannover.de)
  751.     Multi-session support: no
  752.    Multiple drive support: no
  753.   Loadable module support: yes
  754.      Reading audio frames: no
  755.              Auto-probing: no
  756.               Device file: /dev/gscd0, major 16
  757.        Configuration file: gscd.h
  758.      Kernel config option: Goldstar R420 CDROM support?
  759.               README file: README.gscd
  760.  
  761.  
  762.  
  763.   This driver accepts a kernel command line of the form:
  764.  
  765.  
  766.  
  767.        gscd=<io-address>
  768.  
  769.  
  770.  
  771.  
  772.   specifying the I/O base address of the card (e.g. 0x340).
  773.  
  774.   The device file can be created using:
  775.  
  776.  
  777.  
  778.        % mknod /dev/gscd0 b 16 0
  779.  
  780.  
  781.  
  782.  
  783.   See the file README.gscd and the World-Wide Web site
  784.   <http://linux.rz.fh-hannover.de/~raupach> for more information on this
  785.   driver.
  786.  
  787.  
  788.   4.3.6.  Mcd Driver
  789.  
  790.  
  791.  
  792.  
  793.          Principal author: Martin Harriss (martin@bdsi.com)
  794.     Multi-session support: no
  795.    Multiple drive support: no
  796.   Loadable module support: yes
  797.      Reading audio frames: no
  798.              Auto-probing: no
  799.               Device file: /dev/mcd, major 23
  800.        Configuration file: mcd.h
  801.      Kernel config option: Standard Mitsumi CDROM support?
  802.               README file: README.mcd
  803.  
  804.  
  805.  
  806.   This is the older driver for Mitsumi drivers that has been available
  807.   for some time. You might want to try the newer mcdx driver, which has
  808.   some new features but is still considered experimental.
  809.  
  810.   This driver accepts a kernel command line of the form:
  811.  
  812.  
  813.  
  814.        mcd=<io-address>,<irq>
  815.  
  816.  
  817.  
  818.  
  819.   specifying the I/O base address of the card (e.g. 0x340) and the IRQ
  820.   request number used.
  821.  
  822.   The device file can be created using:
  823.  
  824.  
  825.  
  826.        % mknod /dev/mcd b 23 0
  827.  
  828.  
  829.  
  830.  
  831.   See the file README.mcd for more information on this driver.
  832.  
  833.  
  834.   4.3.7.  Mcdx Driver
  835.  
  836.  
  837.  
  838.          Principal author: Heiko Schlittermann
  839.     Multi-session support: yes
  840.    Multiple drive support: yes
  841.   Loadable module support: yes
  842.      Reading audio frames: no
  843.              Auto-probing: no
  844.               Device file: /dev/mcdx0, major 20
  845.        Configuration file: mcdc.h
  846.      Kernel config option: Experimental Mitsumi support?
  847.               README file: README.mcdx
  848.  
  849.  
  850.  
  851.   This is a new and currently experimental driver for Mitsumi drivers.
  852.   The older and possibly more stable mcd driver is still available.
  853.  
  854.   This driver accepts a kernel command line of the form:
  855.  
  856.  
  857.  
  858.  
  859.   mcdx=<io-address>,<irq>
  860.  
  861.  
  862.  
  863.  
  864.   specifying the I/O base address of the card (e.g. 0x340) and the IRQ
  865.   request number used.
  866.  
  867.   The device file can be created using:
  868.  
  869.  
  870.  
  871.        % mknod /dev/mcdx0 b 20 0
  872.  
  873.  
  874.  
  875.  
  876.   See the file README.mcdx for more information on this driver.
  877.  
  878.  
  879.   4.3.8.  Cm206 Driver
  880.  
  881.  
  882.  
  883.          Principal author: David A. van Leeuwen (david@tm.tno.nl)
  884.     Multi-session support: yes
  885.    Multiple drive support: no
  886.   Loadable module support: yes
  887.      Reading audio frames: no
  888.              Auto-probing: yes
  889.               Device file: /dev/cm206cd, major 32
  890.        Configuration file: cm206.h
  891.      Kernel config option: Philips/LMS CM206 CDROM support?
  892.               README file: README.cm206
  893.  
  894.  
  895.  
  896.   The driver accepts a kernel command line of the form:
  897.  
  898.  
  899.  
  900.        cm206=<io-address>,<interrupt>
  901.  
  902.  
  903.  
  904.  
  905.   where the first number is the I/O base address of the card (e.g.
  906.   0x340). The second is the interrupt channel.
  907.  
  908.   The device file can be created using:
  909.  
  910.  
  911.  
  912.        % mknod /dev/cm206cd b 32 0
  913.  
  914.  
  915.  
  916.  
  917.   See the file README.cm206 for more information on this driver.
  918.  
  919.  
  920.   4.3.9.  Optcd Driver
  921.  
  922.  
  923.  
  924.  
  925.          Principal author: Leo Spiekman (spiekman@dutette.et.tudelft.nl)
  926.     Multi-session support: no
  927.    Multiple drive support: no
  928.   Loadable module support: yes
  929.      Reading audio frames: no
  930.              Auto-probing: no
  931.               Device file: /dev/optcd0, major 17
  932.        Configuration file: optcd.h
  933.      Kernel config option: Experimental Optics Storage ... CDROM support?
  934.               README file: README.optcd
  935.  
  936.  
  937.  
  938.   The driver accepts a kernel command line of the form
  939.  
  940.  
  941.  
  942.        optcd=<io-address>
  943.  
  944.  
  945.  
  946.  
  947.   to specify the I/O base address of the card (e.g. 0x340).
  948.  
  949.   The device file can be created using:
  950.  
  951.  
  952.  
  953.        % mknod /dev/optcd0 b 17 0
  954.  
  955.  
  956.  
  957.  
  958.   See the file README.optcd for more information on this driver.
  959.  
  960.  
  961.   4.3.10.  Sjcd Driver
  962.  
  963.  
  964.  
  965.          Principal author: Vadim V. Model (vadim@rbrf.msk.su)
  966.     Multi-session support: no
  967.    Multiple drive support: no
  968.   Loadable module support: no
  969.      Reading audio frames: no
  970.              Auto-probing: no
  971.               Device file: /dev/sjcd, major 18
  972.        Configuration file: sjcd.h
  973.      Kernel config option: Experimental Sanyo H94A CDROM support?
  974.               README file: README.sjcd
  975.  
  976.  
  977.  
  978.   The driver accepts a kernel command line of the form:
  979.  
  980.  
  981.  
  982.        sjcd=<io-address>,<interrupt>,<dma>
  983.  
  984.  
  985.  
  986.  
  987.   indicating the base address, interrupt, and DMA channel to be used
  988.   (e.g. sjcd=0x340,10,5).
  989.  
  990.  
  991.   The device file can be created using:
  992.  
  993.  
  994.  
  995.        % mknod /dev/sjcd b 18 0
  996.  
  997.  
  998.  
  999.  
  1000.   See the file README.sjcd for more information on this driver.
  1001.  
  1002.  
  1003.   4.3.11.  SCSI Driver
  1004.  
  1005.  
  1006.  
  1007.          Principal author: David Giller
  1008.     Multi-session support: yes (depending on drive)
  1009.    Multiple drive support: yes
  1010.   Loadable module support: yes
  1011.      Reading audio frames: yes (depending on drive)
  1012.              Auto-probing: yes
  1013.               Device file: /dev/scd0, major 11
  1014.        Configuration file: cdrom.h
  1015.      Kernel config option: SCSI CDROM support?
  1016.               README file: none
  1017.  
  1018.  
  1019.  
  1020.   There are kernel command line option specific to each type of SCSI
  1021.   controller. See the SCSI HOWTO for more information.
  1022.  
  1023.   Multiple drives are supported (up to the limit of the maximum number
  1024.   of devices on the SCSI bus). Create device files with major number 11
  1025.   and minor numbers starting at zero:
  1026.  
  1027.  
  1028.  
  1029.        % mknod /dev/scd0 b 11 0
  1030.        % mknod /dev/scd1 b 11 1
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.   4.3.12.  IDECD Driver
  1037.  
  1038.  
  1039.  
  1040.          Principal author: Scott Snyder (snyder@fnald0.fnal.gov)
  1041.     Multi-session support: no
  1042.    Multiple drive support: yes
  1043.   Loadable module support: no
  1044.      Reading audio frames: no
  1045.              Auto-probing: yes
  1046.               Device file: /dev/hd{b,c},  major 22
  1047.        Configuration file: cdrom.h
  1048.      Kernel config option: Include support for IDE/ATAPI CDROMs?
  1049.               README file: README.ide
  1050.  
  1051.  
  1052.  
  1053.   This is the drive for ATAPI CD-ROMS. The driver accepts a kernel
  1054.   command line of the form
  1055.  
  1056.  
  1057.        hdx=cyls,heads,sects,wpcom,irq
  1058.          or
  1059.        hdx=cdrom
  1060.  
  1061.  
  1062.  
  1063.  
  1064.   where hdx can be any of {hda,hdb,hdc,hdd}, or simply hd, for the
  1065.   "next" drive in sequence. Only the first three parameters are required
  1066.   (cyls,heads,sects). For example hdc=1050,32,64 hdd=cdrom.
  1067.  
  1068.  
  1069.   4.4.  Booting the Linux Kernel
  1070.  
  1071.  
  1072.   You can now reboot with the new kernel. Watch for a message such as
  1073.   the following indicating that the CD-ROM has been found by the device
  1074.   driver (the message will vary depending on the drive type):
  1075.  
  1076.  
  1077.  
  1078.        SBPCD: Trying to detect a SoundBlaster CD-ROM drive at 0x230.
  1079.        SBPCD: - Drive 0: CR-562-x (0.76)
  1080.        SBPCD: 1 SoundBlaster CD-ROM drive(s) at 0x0230.
  1081.        SBPCD: init done.
  1082.  
  1083.  
  1084.  
  1085.  
  1086.   If the bootup messages scroll by too quickly to read, you should be
  1087.   able to retrieve them using dmesg or tail /var/adm/messages.
  1088.  
  1089.   If the drive is not found, then a problem has occurred, See the
  1090.   section on "troubleshooting.
  1091.  
  1092.  
  1093.   4.5.  Mounting, Unmounting, and Ejecting Devices
  1094.  
  1095.  
  1096.   To mount a CD-ROM, insert a disc in the drive, and run the mount
  1097.   command as root (this assumes you created a symbolic link to your
  1098.   device file as recommended above and that an empty directory /mnt
  1099.   exists):
  1100.  
  1101.  
  1102.  
  1103.        % mount -t iso9660 -r /dev/cdrom /mnt
  1104.  
  1105.  
  1106.  
  1107.  
  1108.   The CD can now be accessed under the directory /mnt. Note that /mnt is
  1109.   commonly used as a temporary mount point; a more suitable name for a
  1110.   permanent installation might be something like /cdrom. There are other
  1111.   options to the mount command that you may wish to use; see the
  1112.   mount(8) man page for details.
  1113.  
  1114.   You can add an entry to /etc/fstab to automatically mount a CD-ROM
  1115.   when Linux boots or to specify parameters to use when it is mounted;
  1116.   see the fstab(5) man page.
  1117.  
  1118.   Note that to play audio CDs you should not try to mount them.
  1119.  
  1120.   To unmount a CD-ROM, use the umount command as root:
  1121.  
  1122.  
  1123.        % umount /mnt
  1124.  
  1125.  
  1126.  
  1127.  
  1128.   The disc can only be unmounted if no processes are currently accessing
  1129.   the drive (including having their default directory set to the mounted
  1130.   drive). You can then eject the disc. Most drives have an eject button;
  1131.   there is also a standalone eject program that allows ejecting CD-ROMs
  1132.   under software control.
  1133.  
  1134.   Note that you should not eject a disc while it is mounted (this may or
  1135.   may not be possible depending on the type of drive). The sbpcd driver
  1136.   can automatically eject a CD-ROM when it is unmounted and insert the
  1137.   CD tray when a disc is mounted (you can turn this feature off when
  1138.   compiling the kernel or by using a software command).
  1139.  
  1140.  
  1141.   4.6.  Troubleshooting
  1142.  
  1143.  
  1144.   If you still encounter problems after following the instructions in
  1145.   the HOWTO, here are some things to check. The checks are listed in
  1146.   increasing order of complexity. If a check fails, solve the problem
  1147.   before moving to the next stage.
  1148.  
  1149.  
  1150.   4.6.1.  Step 1: Make sure you are really running the kernel you com-
  1151.   piled
  1152.  
  1153.  
  1154.   You can check the date stamp on the kernel to see if you are running
  1155.   the one that you compiled with CD-ROM support. You can do this with
  1156.   the uname command:
  1157.  
  1158.  
  1159.  
  1160.        % uname -a
  1161.        Linux fizzbin 1.1.31 #1 Wed Jul 20 16:53:35 EDT 1994 i386
  1162.  
  1163.  
  1164.  
  1165.  
  1166.   or by displaying the file /proc/version:
  1167.  
  1168.  
  1169.  
  1170.        % cat /proc/version
  1171.        Linux version 1.2.13 (root@fizzbin) (gcc version 2.6.3) #9 Sun Aug 6 11:56:47 EDT 1995
  1172.  
  1173.  
  1174.  
  1175.  
  1176.   If the date stamp doesn't seem to match when you compiled the kernel,
  1177.   then you are running an old kernel. Did you really reboot? If you use
  1178.   LILO, did you re-install it (typically by running /etc/lilo/install)?
  1179.   If booting from floppy, did you create a new boot floppy and use it
  1180.   when booting?
  1181.  
  1182.  
  1183.   4.6.2.  Step 2: Make sure the proper kernel drivers are compiled in
  1184.  
  1185.  
  1186.   You can see what drivers are compiled in by looking at /proc/devices:
  1187.  
  1188.  
  1189.        % cat /proc/devices
  1190.        Character devices:
  1191.         1 mem
  1192.         4 tty
  1193.         5 cua
  1194.         6 lp
  1195.        14 sound
  1196.        15 Joystick
  1197.  
  1198.        Block devices:
  1199.         2 fd
  1200.         3 hd
  1201.        25 sbpcd
  1202.  
  1203.  
  1204.  
  1205.  
  1206.   First look for your CD-ROM device driver. These are all block devices,
  1207.   in this case we can see that the sbpcd driver was present.
  1208.  
  1209.   Also make sure that ISO-9660 filesystem support was compiled in, by
  1210.   looking at /proc/filesystems:
  1211.  
  1212.  
  1213.  
  1214.        % cat /proc/filesystems
  1215.                ext2
  1216.                msdos
  1217.        nodev   proc
  1218.                iso9660
  1219.  
  1220.  
  1221.  
  1222.  
  1223.   You can also see what i/o port addresses are being used by a driver
  1224.   with the file /proc/ioports:
  1225.  
  1226.  
  1227.  
  1228.        howto % cat /proc/ioports
  1229.         ...
  1230.        0230-0233 : sbpcd
  1231.         ...
  1232.  
  1233.  
  1234.  
  1235.  
  1236.   If any of the drivers you thought you compiled in are not displayed,
  1237.   then something went wrong with the kernel configuration or build.
  1238.   Start the installation process again, beginning with configuration and
  1239.   building of the kernel.
  1240.  
  1241.  
  1242.   4.6.3.  Step 3: Did the kernel detect your drive during booting?
  1243.  
  1244.  
  1245.   Make sure that the CD-ROM device was detected when the kernel booted.
  1246.   You should have seen a message on bootup. If the messages scrolled off
  1247.   the screen, you can usually recall them using the dmesg command:
  1248.  
  1249.  
  1250.  
  1251.        % dmesg
  1252.  
  1253.  
  1254.  
  1255.   or
  1256.  
  1257.  
  1258.  
  1259.        % tail /var/adm/messages
  1260.  
  1261.  
  1262.  
  1263.  
  1264.   If your drive was not found then something is wrong. Make sure it is
  1265.   powered on and all cables are connected. If your drive has hardware
  1266.   jumpers for addressing, check that they are set correctly (e.g. drive
  1267.   0 if you have only one drive). ATAPI CD-ROMS must be jumpered as
  1268.   "single" or "master", and not "slave" when only one IDE device is
  1269.   attached to an interface. If the drive works under DOS then you can be
  1270.   reasonably confident that the hardware is working.
  1271.  
  1272.   Many kernel drivers using auto-probing, but some do not, and in any
  1273.   case the probing is not always reliable. Use the kernel command line
  1274.   option listed for your kernel driver type. You may want to try several
  1275.   different values if you are not sure of the i/o address or other
  1276.   parameters. LILO can be (and usually is) configured to allow you to
  1277.   enter the parameters manually when booting.
  1278.  
  1279.   Another possibility is that you used the wrong kernel driver for your
  1280.   CD-ROM driver. Some documentation may refer to proprietary interfaces
  1281.   as IDE, leading some to mistakenly believe they are ATAPI drives.
  1282.  
  1283.   Another possibility is that your drive (or interface card) is one of
  1284.   the "compatible" type that requires initialization by the DOS driver.
  1285.   Try booting DOS and loading the vendor supplied DOS device driver.
  1286.   Then soft boot Linux using Control-Alt-Delete.
  1287.  
  1288.   If your drive is not listed in this document, it is possible that
  1289.   there are no drivers for it available under Linux. You can check with
  1290.   some of the references listed at the end of this document for
  1291.   assistance.
  1292.  
  1293.  
  1294.   4.6.4.  Step 4: Can you read data from the drive?
  1295.  
  1296.  
  1297.   Try reading from the CD-ROM drive. Typing the following command should
  1298.   cause the drive activity light (if present) to come on and no errors
  1299.   should be reported. Use whatever device file is appropriate for your
  1300.   drive and make sure a CD-ROM is inserted; use Control-C to exit.
  1301.  
  1302.  
  1303.  
  1304.        dd if=/dev/cdrom of=/dev/null bs=2048
  1305.        ^C
  1306.        124+0 records in
  1307.        124+0 records out
  1308.  
  1309.  
  1310.  
  1311.  
  1312.   If this works, then the kernel is communicating with the drive and you
  1313.   can move on to step 5.
  1314.  
  1315.   If not, then a possible cause is the device file. Make sure than the
  1316.   device file in the /dev directory has the correct major and minor
  1317.   numbers as listed previously for your drive type. Check that the
  1318.   permissions on the device file allow reading and writing.
  1319.  
  1320.  
  1321.   A remote possibility is a hardware problem. Try testing the drive
  1322.   under DOS, if possible, to determine if this could be the case.
  1323.  
  1324.  
  1325.   4.6.5.  Step 5: Can you mount the drive?
  1326.  
  1327.  
  1328.   If you can read from the drive but cannot mount it, first verify that
  1329.   you compiled in ISO-9660 file system support by reading
  1330.   /proc/filesystems, as described previously.
  1331.  
  1332.   Make sure you are mounting the drive with the "-t iso9660" and "-r"
  1333.   options and that a known good CD-ROM (not Audio CD) is inserted in the
  1334.   drive. You normally must mount drives as user root.
  1335.  
  1336.   With ATAPI CD-ROM drives you may need to mount specifying a block size
  1337.   of 2048 bytes. Add the option "-o block=2048" to the mount parameters.
  1338.  
  1339.   Make sure that the mount point exists and is an empty directory.
  1340.  
  1341.   If you are automatically mounting the CD-ROM on bootup, make sure that
  1342.   you have correct entries in the /etc/fstab file.
  1343.  
  1344.   If you are running the syslog daemon, there may be error messages from
  1345.   the kernel that you are not seeing. Try using the "dmesg" command:
  1346.  
  1347.  
  1348.  
  1349.        % dmesg
  1350.        SBPCD: sbpcd_open: no disk in drive
  1351.  
  1352.  
  1353.  
  1354.  
  1355.   There may also be errors logged to files in /var/adm, depending on how
  1356.   your system is configured.
  1357.  
  1358.  
  1359.   4.6.6.  Debugging Audio Problems
  1360.  
  1361.  
  1362.   If the drive works with CD-ROMS, but not for playing audio CDs, here
  1363.   are some possible solutions.
  1364.  
  1365.   You need an application program to play audio CDs. Some applications
  1366.   may be broken or may not be compatible with your drive. Try other
  1367.   applications and/or try recompiling them yourself.
  1368.  
  1369.   A few of the CD-ROM drivers do not support playing Audio CDs. Check
  1370.   the README file or source code to see if that is the case.
  1371.  
  1372.   Check if the audio can be played through the headphone jack. If so,
  1373.   then the problem is likely related to your sound card. Use a mixer
  1374.   program to set the input device and volume levels. Mask sure you have
  1375.   installed an audio cable from the CD-ROM drive to the sound card. Make
  1376.   sure that the kernel sound card driver is installed and working (see
  1377.   the Sound HOWTO).
  1378.  
  1379.  
  1380.   4.6.7.  When All Else Fails
  1381.  
  1382.  
  1383.   If you still have problems, here are some final suggestions for things
  1384.   to try:
  1385.  
  1386.  
  1387.   o  carefully re-read this HOWTO document
  1388.  
  1389.   o  read the references listed at the end of this document, especially
  1390.      the relevant kernel source README files
  1391.  
  1392.   o  post a question to one of the comp.os.linux or other usenet
  1393.      newsgroups
  1394.  
  1395.   o  send a question to the Linux mailing list
  1396.  
  1397.   o  try using the latest Linux kernel
  1398.  
  1399.   o  contact your computer dealer
  1400.  
  1401.   o  contact the CD-ROM manufacturer
  1402.  
  1403.   o  send mail to the author of the relevant kernel driver
  1404.  
  1405.   o  send mail to me
  1406.  
  1407.   o  fire up emacs and type Esc-x doctor
  1408.  
  1409.  
  1410.   5.  Applications
  1411.  
  1412.  
  1413.   This section briefly lists some of the key applications related to CD-
  1414.   ROM that are available under Linux. Check the Linux Software Map for
  1415.   the latest versions and archive sites.
  1416.  
  1417.  
  1418.   5.1.  Audio CD Players
  1419.  
  1420.  
  1421.   Several programs are available for playing audio CDs, either through a
  1422.   headphone jack or an attached sound card.
  1423.  
  1424.  
  1425.      Workman
  1426.         a graphical player running under X11 and supporting a CD
  1427.         database and many other features
  1428.  
  1429.      WorkBone
  1430.         an interactive text-mode player
  1431.  
  1432.      xcdplayer
  1433.         a simple X11 based player
  1434.  
  1435.      cdplayer
  1436.         a very simple command line based player
  1437.  
  1438.      Xmcd
  1439.         an X11/Motif based player
  1440.  
  1441.      xmitsumi
  1442.         another X11 based player for Mitsumi drives
  1443.  
  1444.      xplaycd
  1445.         another X11 based player, bundled with sound mixer and VU meter
  1446.         programs
  1447.  
  1448.      cdtool
  1449.         command line tools for playing audio CDs
  1450.  
  1451.   Some of these programs are coded to use a specific device file for the
  1452.   CD-ROM (e.g. /dev/cdrom). You may be able to pass the correct device
  1453.   name as a parameter, or you can create a symbolic link in the /dev
  1454.   directory. If sending the CD output to a sound card, you may wish to
  1455.   use a mixer program to set volume settings or select the CD-ROM input
  1456.   for recording.
  1457.  
  1458.  
  1459.   5.2.  Inheriting File System
  1460.  
  1461.  
  1462.   The Inheriting File System (IFS) is a kernel driver that allows
  1463.   mounting multiple file systems at the same point. It is similar to the
  1464.   Translucent File System provided under SunOS. By mounting a hard disk
  1465.   directory over a CD-ROM file system, you can effectively obtain a
  1466.   writable CD-ROM file system.
  1467.  
  1468.   The current version is experimental and was written for the 0.99pl11
  1469.   and pl12 kernels; it may or may not work with more recent revisions.
  1470.   The author is Werner Almesberger (almesber@bernina.ethz.ch).
  1471.  
  1472.   A similar package, called the user file system, is another possible
  1473.   method of providing similar functionality.
  1474.  
  1475.  
  1476.   5.3.  PhotoCD
  1477.  
  1478.  
  1479.   PhotoCDs use an ISO-9660 file system containing image files in a
  1480.   proprietary format. Not all CD-ROM drives support reading PhotoCDs.
  1481.  
  1482.   The hpcdtoppm program by Hadmut Danisch converts PhotoCD files to the
  1483.   portable pixmap format. It can be obtained from
  1484.   <ftp://ftp.gwdg.de/pub/linux/hpcdtoppm> or as part of the PBM
  1485.   (portable bit map) utilities, available on many archive sites (look
  1486.   for "pbm" or "netpbm").
  1487.  
  1488.   The photocd program by Gerd Knorr kraxel@cs.tu-berlin.de can convert
  1489.   PhotoCD images into Targa or Windows and OS/2 bitmap files.
  1490.  
  1491.   The same author has written the program xpcd, an X11-based program for
  1492.   handling PhotoCD images. You can select the images with a mouse,
  1493.   preview the image in a small window, and load the image with any of
  1494.   the five possible resolutions. You can also mark a part of the Image
  1495.   and load only the selected part. Look for these packages at
  1496.   <ftp://ftp.cs.tu-berlin.de/pub/linux/Local/misc/>.
  1497.  
  1498.   The ImageMagick image file manipulation program also supports PhotoCD
  1499.   files. It is available from
  1500.   <ftp://ftp.x.org/contrib/applications/ImageMagick/>.
  1501.  
  1502.  
  1503.   5.4.  Mkisofs
  1504.  
  1505.  
  1506.   Eric Youngdale's mkisofs package allows creating an ISO-9660 file
  1507.   system on a hard disk partition. This can then be used to assist in
  1508.   creating and testing CD-ROM file systems before mastering discs.
  1509.  
  1510.   The tools for actually writing data to writable CD-ROM drives tend to
  1511.   be vendor specific. They also require writing the data with no
  1512.   interruptions, so a multitasking operating system like Linux is not
  1513.   particularly well suited.
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.   5.5.  ISO-9660 Utilities
  1520.  
  1521.  
  1522.   These are some utilities for verifying the format of ISO-9660
  1523.   formatted discs; you may find them useful for testing suspect CDs. The
  1524.   package can be found at  <ftp://ftp.cdrom.com/pub/cdrom/ptf/>.  They
  1525.   were written by Bill Siegmund and Rich Morin.
  1526.  
  1527.  
  1528.   6.  Answers to Frequently Asked Questions
  1529.  
  1530.  
  1531.  
  1532.   6.1.  How can a non-root user mount and unmount discs?
  1533.  
  1534.  
  1535.   Some mount commands support the user option. If you make an entry such
  1536.   as the following in /etc/fstab:
  1537.  
  1538.  
  1539.  
  1540.        /dev/sbpcd  /cdrom   iso9660     user,noauto,ro
  1541.  
  1542.  
  1543.  
  1544.  
  1545.   then an ordinary user will be allowed to mount and unmount the drive
  1546.   using these commands:
  1547.  
  1548.  
  1549.  
  1550.        % mount /cdrom
  1551.        % umount /cdrom
  1552.  
  1553.  
  1554.  
  1555.  
  1556.   The disc will be mounted with some options that ensure security (e.g.
  1557.   programs cannot executed, device files are ignored); in some cases
  1558.   this may be too restrictive.
  1559.  
  1560.   Another method is to get the usermount package which allows non-root
  1561.   users to mount and unmount removable devices such as floppies and CD-
  1562.   ROMs, but restricts access to other devices (such as hard disk
  1563.   partitions). It is available on major archive sites.
  1564.  
  1565.   The archive site ftp.cdrom.com has the source file mount.c which
  1566.   allows mounting an unmounting of CD-ROMs (only) by normal users. It
  1567.   runs as a setuid executable.
  1568.  
  1569.  
  1570.   6.2.  Why do I get device is busy when unmounting a CD-ROM?
  1571.  
  1572.  
  1573.   The disc cannot be unmounted if any processes are accessing the drive,
  1574.   including having their default directory set to the mounted
  1575.   filesystem. If you cannot identify the processes using the disc, you
  1576.   can use the fuser command, as shown in the following example.
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.   % umount /cdrom
  1586.   umount: /dev/sbpcd: device is busy
  1587.   % fuser -v /cdrom
  1588.   /cdrom:               USER       PID ACCESS COMMAND
  1589.                         tranter     50 ..c..  bash
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.   6.3.  How do I export a CD-ROM to other hosts over NFS?
  1596.  
  1597.  
  1598.   You need to add an entry to the /etc/exports file; see the exports(5)
  1599.   man page for details.
  1600.  
  1601.  
  1602.   6.4.  Can I boot Linux from a CD-ROM?
  1603.  
  1604.  
  1605.   The easiest way to boot from CD-ROM is to use a boot floppy. Several
  1606.   of the Linux CD-ROM distributions (e.g. Yggdrasil) include one, or you
  1607.   can use the boot disk(s) from one of the Linux distributions (e.g.
  1608.   Slackware) that includes the necessary CD-ROM drivers for your system.
  1609.  
  1610.   In the future it may be possible to boot from ATAPI CD-ROM drives
  1611.   which have the appropriate ROM BIOS functions.
  1612.  
  1613.  
  1614.   6.5.  How can I read digital data from audio CDs?
  1615.  
  1616.  
  1617.   Only a few CD-ROM drives support this. Heiko Eissfeldt
  1618.   (heiko@colossus.escape.de) and Olaf Kindel have written a utility that
  1619.   reads audio data and saves it as .wav format sound files. It works
  1620.   with the Toshiba XM3401 and XM4101 SCSI drives. The package is called
  1621.   cdda2wav.tar.gz and can be found on sunsite.unc.edu. Other users have
  1622.   reported success with the Chinon 535 and Toshiba 3601B drives.
  1623.  
  1624.   The Panasonic SBPCD driver also has support for reading sound data
  1625.   beginning with the 2.0 driver included in the 1.1.22 kernel. A
  1626.   modified version of the cdda2wav program that works with this can be
  1627.   found at  <ftp://ftp.gwdg.de/pub/linux/misc/cdda2wav-sbpcd.2.tar.gz>.
  1628.  
  1629.   Even though the standard cdda2wav program claims to support the
  1630.   Panasonic drives, it does not yet work properly, because of the need
  1631.   to handle "overlap" of the data.
  1632.  
  1633.   The CDU-33 driver supports reading audio data. It is said to work with
  1634.   the cdda2wav program.
  1635.  
  1636.   For more information on this subject, see the alt.cd-rom FAQ listed in
  1637.   the references section.
  1638.  
  1639.  
  1640.   6.6.  Why doesn't the find command work properly?
  1641.  
  1642.  
  1643.   On ISO-9660 formatted discs without the Rock Ridge Extensions, you
  1644.   need to add the -noleaf option to the find command.
  1645.  
  1646.   The reason for this is that the number of links for each directory
  1647.   file is not easily obtainable, so it is set to 2. The default behavior
  1648.   for the find program is to look for (i_links - 2) subdirectories in
  1649.   each directory, and it then assumes that the rest are regular files.
  1650.   The -noleaf switch disables this optimization.
  1651.   6.7.  Is the Reveal Multimedia Effects kit CD-ROM supported?
  1652.  
  1653.  
  1654.   (the following was provided by Steve Horne Horne@cmod2.pfc.mit.edu)
  1655.  
  1656.   About a year ago I bought a Reveal CD/soundcard kit, and managed to
  1657.   get my particular configuration to work under Linux. I posted the
  1658.   tricks I used to make the thing work; that note got into the CD-ROM
  1659.   HOWTO. Recently I've been receiving a couple of requests a week for
  1660.   help on making Reveal kits work under Linux.
  1661.  
  1662.   I'm no expert. All I did was hammer away at Reveal Tech Support until
  1663.   they gave me the address of the appropriate port, then added the two
  1664.   SOUND-FX lines to the cdu31a driver.  I don't know how to help most of
  1665.   the people who e-mail me.  This is the note I plan to send them. It
  1666.   would be a good idea for you to condense it to the appropriate level
  1667.   for the HOWTO. In particular, I don't want anyone to get the
  1668.   impression that this is a good card to buy for a linux system.  It's
  1669.   not.
  1670.  
  1671.   REVEAL cards -  under Linux
  1672.  
  1673.   Summary:
  1674.  
  1675.  
  1676.   o  Don't buy one.
  1677.  
  1678.   o  If you already have one, and have a Sony drive, you can make the CD
  1679.      work.
  1680.  
  1681.   o  If you don't have a Sony drive, you can probably make the drive
  1682.      work, but I'm not certain, since I don't have that hardware.
  1683.  
  1684.   o  Sound support is poor. If Aztech would release programming
  1685.      information, there would be some hope.
  1686.  
  1687.   Fine print:
  1688.  
  1689.   If your kit has a Sony, the cdu31a driver will work for you.  You need
  1690.   a kernel with cdu31a support compiled in. The following is from the
  1691.   comments in the cdu31a source code:
  1692.  
  1693.  
  1694.  
  1695.         * WARNING -    All autoprobes have been removed from the driver.
  1696.         *              You MUST configure the CDU31A via a LILO config
  1697.         *              at boot time or in lilo.conf.  I have the
  1698.         *              following in my lilo.conf:
  1699.         *
  1700.         *                append="cdu31a=0x1f88,0,PAS"
  1701.         *
  1702.         *              The first number is the I/O base address of the
  1703.         *              card.  The second is the interrupt (0 means none).
  1704.         *              The third should be "PAS" if on a Pro-Audio
  1705.         *              spectrum, or nothing if on something else.
  1706.  
  1707.  
  1708.  
  1709.  
  1710.   I expect the appropriate line for a Reveal card to be
  1711.  
  1712.  
  1713.  
  1714.        append="cdu31a=0x654,0"
  1715.  
  1716.  
  1717.   Since I don't consistently use LILO, I have just put the autoprobing
  1718.   back in by deleting the conditional stuff, and put my address first.
  1719.   (The file is  </usr/src/linux/drivers/block/cdu31a.c>; search for the
  1720.   string "cdu31a_addresses" to find the spot.)
  1721.  
  1722.   THIS WILL NOT WORK IF YOUR KIT DOESN'T HAVE A SONY DRIVE!  (I don't
  1723.   know that for sure, but I'd be very surprised if it did.)
  1724.  
  1725.   By analogy to the Sony case, I expect that if you have a Panasonic or
  1726.   Mitsumi drive, you need to obtain from Reveal Tech Support the base
  1727.   register for your CD-ROM type, then use the appropriate driver. (I
  1728.   don't know if the sbpcd driver will work; it might. No matter what,
  1729.   you need those addresses.)  I don't know if the "append=..." will work
  1730.   with the other drivers.
  1731.  
  1732.   You can't patch the driver or lilo.conf until you have some sort of
  1733.   system up.  If you are starting from scratch (DOS only, no Linux) here
  1734.   are a few things to try --
  1735.  
  1736.  
  1737.   1. Copy the installation files to a DOS partition and install from
  1738.      there.  This is foolproof but will require up to 90 MB of space in
  1739.      your DOS partition.  Once the system is up you can use the above
  1740.      tricks.  It's possible to bootstrap yourself up by installing only
  1741.      the A, AP, and D series (if you are using Slackware) plus a kernel
  1742.      source tree (Q ?).  This will give you the tools to patch and build
  1743.      a kernel.
  1744.  
  1745.   2. If you either have a Sony CD or are otherwise confident, have a
  1746.      friend make you a patched kernel -- (autoprobes on, your address
  1747.      first.)  Rdev it in the usual way:
  1748.  
  1749.  
  1750.  
  1751.        rdev  /dev/fd0 /dev/fd0                 ; root=floppy
  1752.        rdev -r /dev/fd0 1440                   ; ramdisk
  1753.        rdev -t /dev/fd0 -3                     ; prompt for screen mode
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.   Then use it to boot the installation root-disk. Make a mount point for
  1760.   the CD that won't interfere with the installation procedure:
  1761.  
  1762.  
  1763.  
  1764.        # mkdir /cd
  1765.        # mount -r -t iso9660 /dev/fd0 /cd
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.   Then use the "install from mounted directory" option. Of course, the
  1772.   kernels in the distribution won't work for you; copy your custom ker-
  1773.   nel instead.
  1774.  
  1775.   3. It's just barely possible (I haven't checked) that the new LOADLIN
  1776.      routine, which boots Linux from DOS, might save you. I believe it's
  1777.      possible to use it like LILO to pass data to the kernel, so it
  1778.      might work to boot DOS, then boot Linux, passing the hardware
  1779.      addresses to the driver via LOADLIN. I've never tried this.
  1780.  
  1781.   Sound support:
  1782.  
  1783.   This card (isc-400) isn't well supported by Linux, which is a shame
  1784.   because it seems to be a nice piece of hardware. The card will produce
  1785.   output in the 8-bit SB mode. I haven't made the mixer work, so
  1786.   recording doesn't work properly either. The MSS mode doesn't have an
  1787.   IRQ; I don't know how to tell the driver that, so that doesn't work. I
  1788.   haven't seen the AdLib compatibility work.
  1789.  
  1790.   I have tried, and at least one other person has tried, to obtain
  1791.   programming information for the native mode(s) of the card. After many
  1792.   hours on the phone I was referred to Singapore. I passed at that
  1793.   point. When I get serious about sound again, I'll buy a genuine
  1794.   SoundBlaster card.
  1795.  
  1796.  
  1797.   6.8.  Does Linux support any recordable CD-ROM drives?
  1798.  
  1799.  
  1800.   According to Adam J. Richter, adam@yggdrasil.com:
  1801.  
  1802.   The Yggdrasil distribution can drive a Philips CD writer with an
  1803.   Adaptec 154x SCSI controller. I'm not sure which other SCSI
  1804.   controllers, if any, will work. You can use mkisofs to make an
  1805.   ISO-9660 filesystem and cdwrite to write it to the CD. If you want us
  1806.   to help you set this up, you can call us on our 900 technical support
  1807.   number: 1-900-446-6075 extension 835 (US$2.95/minute, U.S. only).
  1808.  
  1809.  
  1810.   6.9.  Why do I get mount: Read-only file system when mounting a CD-
  1811.   ROM?
  1812.  
  1813.  
  1814.   With older kernels you could mount a CD-ROM for read/write; attempts
  1815.   to write data to the CD would not generate any errors. As of kernel
  1816.   version 1.1.33 this was corrected so that CD-ROMs must be mounted read
  1817.   only (e.g. using the -r option to mount).
  1818.  
  1819.  
  1820.   6.10.  Why does the disc tray open when I shut down the system?
  1821.  
  1822.  
  1823.   As of the 1.1.38 kernel, the sbpcd driver ejects the CD when it is
  1824.   unmounted or closed. If you shut down the system, a mounted CD will be
  1825.   unmounted.
  1826.  
  1827.   This feature is for convenience when changing discs. If the tray is
  1828.   open when you mount or read a CD, it will also automatically be
  1829.   closed.
  1830.  
  1831.   I found that this caused problems with a few programs (e.g. cdplay and
  1832.   workbone). As of the 1.1.60 kernel you can control this feature under
  1833.   software control. A sample program is included in the README.sbpcd
  1834.   file (or use the "eject" program).
  1835.  
  1836.  
  1837.   6.11.  I have a "special" CD that can't be mounted
  1838.  
  1839.  
  1840.   The "special" CD is likely an XA disc (like all Photo CDs or "one-
  1841.   offs" created using CD-R drives). Most of the Linux kernel CD-ROM
  1842.   drivers do not support XA discs, although you may be able to find a
  1843.   patch to add support on one of the archive sites.
  1844.  
  1845.   The sbpcd driver does support XA. If you are using this driver you can
  1846.   determine if the disc is XA using the following procedure: go into the
  1847.   file sbpcd.c and enable the display of the "Table of Contents"
  1848.   (DBG_TOC). Build and install the new kernel and boot from it. During
  1849.   each mount the TOC info will be written (either to the console or to a
  1850.   log file). If the first displayed value in the TOC header line is
  1851.   "20", then it is an XA disc. That byte is "00" with normal disks. If
  1852.   the TOC display shows different tracks, that is also a sign that it is
  1853.   an XA disc.
  1854.  
  1855.   (thanks to Eberhard Moenkeberg for the above information)
  1856.  
  1857.   Other possibilities for unreadable CDs are:
  1858.  
  1859.  
  1860.   1. The disc doesn't use an ISO-9660 file system (e.g. some use SunOS)
  1861.  
  1862.   2. It is an audio CD
  1863.  
  1864.   3. The CD is damaged or defective
  1865.  
  1866.   4. You put it in the drive upside down :-)
  1867.  
  1868.  
  1869.   6.12.  Why does the drive light flash on my CDU-33 drive?
  1870.  
  1871.  
  1872.   This is normal and was added in a recent revision of the driver. It
  1873.   flashes the drive light when a CD is mounted (it's not a bug, it's a
  1874.   feature...).
  1875.  
  1876.  
  1877.   6.13.  Do multi-platter CD-ROM drives work with Linux?
  1878.  
  1879.  
  1880.   Several users have reported success with multi-disc CD-ROM changers.
  1881.   All of the drives I have come across use SCSI interfaces.
  1882.  
  1883.   You probably need to enable the "Probe all LUNs on each SCSI device"
  1884.   kernel configuration option. At least one user also had to increase a
  1885.   SCSI timeout value in the kernel driver.
  1886.  
  1887.   The Nakamichi MBR-7 7 disc changer and Pioneer 12 disc changer have
  1888.   been reported to work.
  1889.  
  1890.  
  1891.   6.14.  How do you pronounce "Matsushita" ?
  1892.  
  1893.  
  1894.   I'm told that the correct pronunciation it something like MAT-SOOSH-
  1895.   TA.
  1896.  
  1897.  
  1898.   7.  References
  1899.  
  1900.  
  1901.   I have already mentioned the README files, typically installed in
  1902.   </usr/src/linux/drivers/block/>. These can be a gold mine of useful
  1903.   information.
  1904.  
  1905.   The following usenet FAQs are posted periodically to news.answers and
  1906.   archived at internet FTP sites such as  <ftp://rtfm.mit.edu/>:
  1907.  
  1908.  
  1909.   o  alt.cd-rom FAQ
  1910.  
  1911.   o  comp.periphs.scsi FAQ
  1912.  
  1913.   Several other Linux HOWTOs have useful information relevant to CD-ROM:
  1914.  
  1915.   o  SCSI HOWTO <http://sunsite.unc.edu/mdw/HOWTO/SCSI-HOWTO.html>
  1916.  
  1917.   o  Hardware Compatibility HOWTO
  1918.      <http://sunsite.unc.edu/mdw/HOWTO/Hardware-HOWTO.html>
  1919.  
  1920.   o  Sound HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Sound-HOWTO.html>
  1921.  
  1922.   o  Kernel HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html>
  1923.  
  1924.   o  Distribution HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Distribution-
  1925.      HOWTO.html>
  1926.  
  1927.   At least 10 companies sell Linux distributions on CD-ROM; most of them
  1928.   are listed in the Distribution HOWTO.
  1929.  
  1930.   The following Usenet news groups cover CD-ROM related topics:
  1931.  
  1932.  
  1933.   o  comp.publish.cdrom.hardware
  1934.  
  1935.   o  comp.publish.cdrom.multimedia
  1936.  
  1937.   o  comp.publish.cdrom.software
  1938.  
  1939.   o  comp.sys.ibm.pc.hardware.cd-rom
  1940.  
  1941.   o  alt.cd-rom
  1942.  
  1943.   o  alt.cd-rom.reviews
  1944.  
  1945.   The comp.os.linux newsgroups are also good sources of Linux specific
  1946.   information.
  1947.  
  1948.   There is a large archive of CD-ROM information and software at
  1949.   <ftp://ftp.cdrom.com/pub/cdrom/>.
  1950.  
  1951.   A Web site dedicated to multimedia can be found at
  1952.   <http://viswiz.gmd.de/MultimediaInfo/>.
  1953.  
  1954.   The Linux Documentation Project has produced several books on Linux,
  1955.   including Linux Installation and Getting Started. These are freely
  1956.   available by anonymous FTP from major Linux archive sites or can be
  1957.   purchased in hardcopy format.
  1958.  
  1959.   The Linux Software Map (LSM) is an invaluable reference for locating
  1960.   Linux software. The LSM can be found on various anonymous FTP sites,
  1961.   including  <ftp://sunsite.unc.edu/pub/Linux/docs/LSM.gz/>.
  1962.  
  1963.   The Linux mailing list has a number of "channels" dedicated to
  1964.   different topics. To find out how to join, send a mail message with
  1965.   the word "help" as the message body to majordomo@vger.rutgers.edu.
  1966.